# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=tree-sitter-kotlin
pkgver=0.3.8
pkgrel=0
pkgdesc="Kotlin grammar for Tree-Sitter"
url="https://github.com/fwcd/tree-sitter-kotlin"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="$pkgname-$pkgver.tar.gz::https://github.com/fwcd/tree-sitter-kotlin/archive/refs/tags/$pkgver.tar.gz"
options="!check" # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
887382aaeeef870413876af3b12ad0a7fcec7a791815a566672bc870702cc9e237f6cd57e976b50b0ef689856f7b59a0de8fe3fbed3059b7fadff1f3b2c8aed7  tree-sitter-kotlin-0.3.8.tar.gz
"
